package com.group01.vo.Order;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Description
 * @Author 翟玉龙
 * @Date 2024/6/22
 */
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Data
public class OrderGetPageVO {
    /**
     * 订单编号
     */
    private String orderId;

    /**
     * 订单状态
     1.已创建未支付
     2.已支付未发货
     3.已发货未收货
     4.已收货
     5.已关闭 只能关闭 已创建未支付的订单
     */
    private Integer status;

    /**
     * 下单用户
     */
    private String username;

    /**
     * 创建订单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

    /**
     * 收货人姓名
     */
    private String receiveUsername;

    /**
     * 收货地址
     */
    private String receiveAddress;

    /**
     * 收货人电话
     */
    private String receivePhone;

    /**
     * 订单总金额
     */
    private double totalPrice;

    /**
     * 订单总数量
     */
    private Integer totalNum;
}
